﻿package mortal.game.view.palyer.view
{
    import Message.DB.Tables.*;
    import Message.Game.*;
    import Message.Public.*;
    import baseEngine.modifiers.*;
    import com.gengine.core.frame.*;
    import com.gengine.resource.*;
    import com.gengine.utils.*;
    import com.mui.controls.*;
    import com.mui.utils.*;
    import extend.language.*;
    import flash.display.*;
    import flash.events.*;
    import flash.geom.*;
    import frEngine.effectEditTool.temple.*;
    import frEngine.pools.*;
    import frEngine.primitives.object2d.*;
    import mortal.common.global.*;
    import mortal.component.rotate3dModelSprite.*;
    import mortal.component.window.*;
    import mortal.game.cache.*;
    import mortal.game.manager.*;
    import mortal.game.manager.window3d.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.resource.info.item.*;
    import mortal.game.resource.tableConfig.*;
    import mortal.game.scene3D.map3D.util.*;
    import mortal.game.scene3D.model.player.*;
    import mortal.game.scene3D.model.player.weapon.*;
    import mortal.game.scene3D.model.pools.*;
    import mortal.game.scene3D.player.entity.*;
    import mortal.game.scene3D.player.type.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.display.*;
    import mortal.game.view.common.item.*;
    import mortal.game.view.common.util.*;
    import mortal.game.view.palyer.data.*;
    import mortal.game.view.palyer.util.*;
    import mortal.game.view.playerSystem.view.*;
    import mortal.mvc.core.*;
    import mortal.mvc.interfaces.*;

    public class FashionActivityWin extends Window
    {
        private var _bg:GBitmap;
        private var _titleTxt:GTextFiled;
        private var _levelTxt:GTextFiled;
        private var _levelName:GTextFiled;
        private var _combat:BitmapNumberText;
        private var _returnText:GTextFiled;
        private var _propItem:BaseItem;
        protected var _rect3d:Rect3DObject;
        protected var _img2d:Img2D;
        protected var _roleModelPlayer:UserModelPlayer;
        protected var _rotate3d:Rotate3dModelSprite;
        protected var _weaponPlayer:WeaponPlayer;
        protected var _weaponEffectPlayer:EffectPlayer;
        protected var _fightSoulEffectPlayer:EffectPlayer;
        protected var _fightSoulModelPlayer:ActionPlayer;
        protected var _hideCallBack:Function;
        protected var _isRoleModelDisposed:Boolean = true;
        protected var _isWeaponModelDisposed:Boolean = true;
        protected var _isFightSoulDisposed:Boolean = true;
        protected var _frameTimer:FrameTimer;
        private var _data:FashionAdvanceData;
        private var _turnNum:Number = 0;
        private static var _instance:FashionActivityWin;

        public function FashionActivityWin(param1:ILayer = null)
        {
            if (_instance != null)
            {
                throw new Error("FashionActivityWin 单例");
            }
            isForbidenDrag = true;
            this.layer = LayerManager.windowLayer3D;
            this.setSize(352, 512);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            _isAddClolseButton = false;
            super.createDisposedChildrenImpl();
            this._bg = UIFactory.gBitmap("");
            this._rotate3d = UIFactory.getUICompoment(Rotate3dModelSprite, 0, 0, this.contentTopOf3DSprite);
            this._rotate3d.setSize(335, 469);
            this.createChildren();
            LoaderManager.instance.load(ImagesConst.ActivityBg2_Fashion + ".swf", this.onBgLoadCompl);
            this.addListeners();
            return;
        }// end function

        private function onResLoadCompl() : void
        {
            if (isDisposed)
            {
                return;
            }
            this.createChildren();
            return;
        }// end function

        protected function onBgLoadCompl(param1) : void
        {
            if (isDisposed)
            {
                return;
            }
            this._bg.bitmapData = param1.bitmapData as BitmapData;
            this.init3DRect();
            this.add3dBg();
            this.initModel();
            return;
        }// end function

        private function createChildren() : void
        {
            this.pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.ActivityBg_Fashion, 0, 0, this));
            this.pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.FashionActiveText, 20 - 28, 320 + 16, this.contentTopOf3DSprite));
            this._titleTxt = UIFactory.gTextField("", 153 + 2, 4, 70, 20, this.contentTopOf3DSprite, GlobalStyle.textFormatAnjin);
            this._levelTxt = UIFactory.gTextField("", 50, 40, 54, 20, this.contentTopOf3DSprite, GlobalStyle.textFormatBai);
            this._levelName = UIFactory.gTextField("", 98, 41, 85, 20, this.contentTopOf3DSprite, GlobalStyle.textFormatBai);
            this.pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.Fashion_ActivityCombat, 193, 44, this.contentTopOf3DSprite));
            this._combat = UIFactory.bitmapNumberText(193 + 50 + 6, 45 - 4, "PetGrowYellowNum.png", 18, 21, -6, this.contentTopOf3DSprite, 9);
            this._returnText = UIFactory.gTextField("", 141 - 20, 455 + 19, 180, 20, this.contentTopOf3DSprite);
            this._propItem = UICompomentPool.getUICompoment(BaseItem);
            this._propItem.setItemStyle(ItemStyleConst.Small, ImagesConst.FashionEquipBg, 9, 9);
            this._propItem.x = 257 + 16;
            this._propItem.y = 405 + 20 - 4;
            this._propItem.isDragAble = false;
            this._propItem.isShowColorBg = false;
            this.contentTopOf3DSprite.addChild(this._propItem);
            this.updateAll();
            return;
        }// end function

        private function addListeners() : void
        {
            NetDispatcher.addCmdListener(ServerCommand.FashionInfoUpdate, this.onFashionInfoUpdate);
            return;
        }// end function

        private function removeListeners() : void
        {
            NetDispatcher.removeCmdListener(ServerCommand.FashionInfoUpdate, this.onFashionInfoUpdate);
            return;
        }// end function

        protected function init3DRect() : void
        {
            this._rect3d = Rect3DManager.instance.registerWindow(true, new Rectangle(8, 35 - 5, 335, 469), this);
            Rect3DManager.instance.windowShowHander(null, this);
            return;
        }// end function

        private function add3dBg() : void
        {
            if (this._rect3d)
            {
                this._rect3d.removeImg(this._img2d);
                this._img2d = new Img2D(null, this._bg.bitmapData, new Rectangle(0, 0, 335, 469), false);
                this._rect3d.addImg(this._img2d);
            }
            return;
        }// end function

        protected function initModel() : void
        {
            if (this._rect3d)
            {
                this.initUserModel();
                this.initWeaponModel();
                this.updateModel();
            }
            return;
        }// end function

        private function initUserModel() : void
        {
            this._roleModelPlayer = FrObjectPool.getObject(UserModelPlayer, this);
            var _loc_1:* = Cache.instance.role.entityInfo.career;
            var _loc_2:* = Cache.instance.role.entityInfo.sex;
            var _loc_3:* = Cache.instance.role.roleEntityInfo.clothes;
            if (GameMapUtil.curMapState.isSunbathMap)
            {
                _loc_3 = 0;
            }
            var _loc_4:* = Cache.instance.role.roleEntityInfo.weapon;
            var _loc_5:* = Cache.instance.role.roleEntityInfo.hair;
            var _loc_6:* = Cache.instance.role.roleEntityInfo.wing;
            var _loc_7:* = Cache.instance.role.roleEntityInfo.entityInfo.VIP;
            this._roleModelPlayer.updateInfo(_loc_1, _loc_2, _loc_3, _loc_4, _loc_5, _loc_6, _loc_7);
            this._roleModelPlayer.scaleAll = 2.3;
            this._roleModelPlayer.useLight();
            this._roleModelPlayer.rotationX = 0;
            this._roleModelPlayer.rotationY = 0;
            this._rotate3d.model = this._roleModelPlayer;
            return;
        }// end function

        private function initWeaponModel() : void
        {
            this._weaponPlayer = FrObjectPool.getObject(WeaponPlayer, this);
            this._weaponPlayer.enabledPool = false;
            this._weaponPlayer.scaleX = 1.8;
            this._weaponPlayer.scaleY = 1.8;
            this._weaponPlayer.scaleZ = 1.8;
            this._weaponPlayer.rotationZ = -20;
            return;
        }// end function

        public function set data(param1) : void
        {
            var _loc_2:* = param1 as FashionAdvanceData;
            this._data = new FashionAdvanceData();
            this._data.type = _loc_2.type;
            this._data.baseInfo = MountConfig.instance.getMountInfoByCode(3, this._data.type);
            this._data.advanceInfo = _loc_2.advanceInfo;
            if (!isDisposed)
            {
                this.updateAll();
            }
            return;
        }// end function

        private function updateAll() : void
        {
            if (this._data)
            {
                this.updateTitleInfo();
                this.updateLevelInfo();
                this.updateCombat();
                this.updateReturnInfo();
                if (this._roleModelPlayer != null || this._weaponPlayer != null || this._fightSoulModelPlayer != null)
                {
                    this.updateModel();
                }
            }
            return;
        }// end function

        private function updateTitleInfo() : void
        {
            this._titleTxt.text = FashionUtil.getFashionNameByType(this._data.type) + Language.getString(41288);
            return;
        }// end function

        private function updateLevelInfo() : void
        {
            this._levelTxt.text = Language.getStringByParam(41289, this._data.baseInfo.code);
            this._levelName.text = this._data.baseInfo.name;
            return;
        }// end function

        private function updateCombat() : void
        {
            var _loc_3:Array = null;
            var _loc_4:Array = null;
            var _loc_5:String = null;
            var _loc_1:Number = 0;
            var _loc_2:* = MountConfig.instance.getFashionInfoByCode(this._data.type, this._data.baseInfo.code);
            if (_loc_2)
            {
                _loc_3 = [];
                _loc_4 = AttributeUtil.attrs.concat();
                _loc_4.splice(2, 1);
                _loc_4.splice(-1);
                for each (_loc_5 in _loc_4)
                {
                    
                    _loc_1 = _loc_1 + CombatUtil.getCombatValueByName(_loc_5, _loc_2[_loc_5]);
                }
            }
            this._combat.text = int(_loc_1) + "";
            return;
        }// end function

        private function updateReturnInfo() : void
        {
            var _loc_2:Array = null;
            var _loc_3:int = 0;
            var _loc_4:int = 0;
            var _loc_5:String = null;
            var _loc_1:* = this._data.baseInfo.returnAdvanceNum;
            if (_loc_1)
            {
                _loc_2 = _loc_1.split("#");
                _loc_3 = int(_loc_2[0]);
                _loc_4 = int(_loc_2[1]);
                _loc_5 = HTMLUtil.addColor(_loc_4 + "", GlobalStyle.colorLv);
                this._returnText.htmlText = Language.getStringByParam(41290, _loc_5);
                this._propItem.itemData = new ItemData(_loc_3);
                this._propItem.amount = _loc_4;
                if (!Cache.instance.fashion.isTakeReturnProp(this._data.type) && this._data.advanceInfo.code >= 3)
                {
                }
            }
            return;
        }// end function

        protected function updateModel() : void
        {
            var _loc_1:TMountConfig = null;
            var _loc_2:int = 0;
            var _loc_3:int = 0;
            var _loc_4:int = 0;
            var _loc_5:TPlayerModel = null;
            var _loc_6:int = 0;
            if (this._data == null)
            {
                return;
            }
            if (this._data.type == EAdvanceComponentType._EAdvanceComponentTypeClothes)
            {
                if (!this._isWeaponModelDisposed)
                {
                    this.removeWeaponModel();
                }
                if (!this._isFightSoulDisposed)
                {
                    this.removeFightSoulPlayer();
                }
                if (this._isRoleModelDisposed)
                {
                    this.initUserModel();
                    this._rect3d.addObject3d(this._roleModelPlayer, 73 + 72 + 14, 133 + 223 - 60 + 64);
                    this._isRoleModelDisposed = false;
                }
                _loc_1 = MountConfig.instance.getFashionInfoByCode(this._data.type, this._data.baseInfo.code);
                this._roleModelPlayer.clothes = _loc_1.modelId;
                this._roleModelPlayer.wing = 0;
                this._roleModelPlayer.weapon = 0;
                this._roleModelPlayer.loadClothes();
                this._roleModelPlayer.loadWing();
                this._roleModelPlayer.loadWeapon();
            }
            if (this._data.type == EAdvanceComponentType._EAdvanceComponentTypeWing)
            {
                if (!this._isWeaponModelDisposed)
                {
                    this.removeWeaponModel();
                }
                if (!this._isFightSoulDisposed)
                {
                    this.removeFightSoulPlayer();
                }
                if (this._isRoleModelDisposed)
                {
                    this.initUserModel();
                    this._rect3d.addObject3d(this._roleModelPlayer, 73 + 72 + 14, 133 + 223 - 60 + 64);
                    this._isRoleModelDisposed = false;
                }
                _loc_1 = MountConfig.instance.getFashionInfoByCode(this._data.type, this._data.baseInfo.code);
                this._roleModelPlayer.clothes = Cache.instance.role.roleEntityInfo.clothes;
                if (GameMapUtil.curMapState.isSunbathMap)
                {
                    this._roleModelPlayer.clothes = 0;
                }
                this._roleModelPlayer.wing = _loc_1.modelId;
                this._roleModelPlayer.weapon = 0;
                this._roleModelPlayer.loadClothes();
                this._roleModelPlayer.loadWing();
                this._roleModelPlayer.loadWeapon();
            }
            if (this._data.type == EAdvanceComponentType._EAdvanceComponentTypeWeapon)
            {
                if (!this._isFightSoulDisposed)
                {
                    this.removeFightSoulPlayer();
                }
                _loc_2 = Cache.instance.role.entityInfo.career;
                switch(_loc_2)
                {
                    case ECareer._ECareerWarrior:
                    {
                        _loc_3 = 132;
                        _loc_4 = 270;
                        break;
                    }
                    case ECareer._ECareerArcher:
                    {
                        _loc_3 = 132 + 30;
                        _loc_4 = 230 - 25;
                        break;
                    }
                    case ECareer._ECareerMage:
                    {
                        _loc_3 = 132;
                        _loc_4 = 230;
                        break;
                    }
                    default:
                    {
                        break;
                    }
                }
                if (this._isWeaponModelDisposed)
                {
                    this.initWeaponModel();
                    this._rect3d.addObject3d(this._weaponPlayer, _loc_3, _loc_4);
                    this._isWeaponModelDisposed = false;
                }
                if (this._roleModelPlayer == null)
                {
                    this.initUserModel();
                }
                _loc_1 = MountConfig.instance.getFashionInfoByCode(this._data.type, this._data.baseInfo.code);
                _loc_5 = this._roleModelPlayer.getModelInfo(ModelType.WEAPONS, _loc_1.modelId);
                this._weaponPlayer.load(_loc_5.mesh + ".md5mesh", _loc_5.texture, this._rect3d.renderList);
                this._rect3d.addObject3d(this._weaponPlayer, _loc_3, _loc_4);
                this.stopTurn();
                if (this._frameTimer == null)
                {
                    this._frameTimer = new FrameTimer();
                    this._frameTimer.addListener(TimerType.ENTERFRAME, this.onTimerFrameHandler);
                }
                this._frameTimer.start();
                this.removeEffect();
                _loc_6 = Cache.instance.role.roleEntityInfo.entityInfo.VIP;
                if (_loc_5 && _loc_5.selfEffect && _loc_6 > 0)
                {
                    this._weaponEffectPlayer = EffectPlayerPool.instance.getEffectPlayer(_loc_5.selfEffect, this._weaponPlayer, this._rect3d.renderList, true);
                    if (this._weaponEffectPlayer.temple is TempleRole)
                    {
                        (this._weaponEffectPlayer.temple as TempleRole).setRoleParams(this._weaponPlayer, null, null);
                    }
                    this._weaponEffectPlayer.play();
                }
                if (!this._isRoleModelDisposed)
                {
                    this.removeRoleModel();
                }
            }
            if (this._data.type == EAdvanceComponentType._EAdvanceComponentTypeFightSoul || this._data.type == EAdvanceComponentType._EAdvanceComponentTypeFightMethod || this._data.type == EAdvanceComponentType._EAdvanceComponentTypeDragonSoul || this._data.type == EAdvanceComponentType._EAdvanceComponentTypeHolyBook || this._data.type == EAdvanceComponentType._EAdvanceComponentTypeWarShield || this._data.type == EAdvanceComponentType._EAdvanceComponentTypeMonsterSoul)
            {
                this.updateFightSoulModel();
            }
            return;
        }// end function

        private function updateFightSoulModel() : void
        {
            var _loc_2:TModel = null;
            this.removeAllModel();
            var _loc_1:* = MountConfig.instance.getFashionInfoByCode(this._data.type, this._data.baseInfo.code);
            if (_loc_1)
            {
                _loc_2 = ModelConfig.instance.getInfoByCode(_loc_1.modelId);
                if (_loc_2)
                {
                    if (this._fightSoulModelPlayer == null)
                    {
                        this._fightSoulModelPlayer = FrObjectPool.getObject(ActionPlayer, this);
                        if (this._data.type == EAdvanceComponentType._EAdvanceComponentTypeWarShield)
                        {
                            this._rect3d.addObject3d(this._fightSoulModelPlayer, 132 + 20 + 18, 280 + 60 - 109);
                        }
                        else
                        {
                            this._rect3d.addObject3d(this._fightSoulModelPlayer, 132 + 20, 280 + 60);
                        }
                    }
                    this._fightSoulModelPlayer.load(_loc_2.mesh1 + ".md5mesh", _loc_2.bone1 + ".skeleton", _loc_2.texture1, this._rect3d.renderList);
                    this._fightSoulModelPlayer.play();
                    if (this._data.type == EFashionType._EFashionFightSoul)
                    {
                        this._fightSoulModelPlayer.scaleValue = 10;
                    }
                    if (this._data.type == EFashionType._EFashionDragonSoul)
                    {
                        this._fightSoulModelPlayer.scaleValue = 2.2;
                    }
                    if (this._data.type == EAdvanceComponentType._EAdvanceComponentTypeWarShield)
                    {
                        this._fightSoulModelPlayer.scaleValue = 2;
                    }
                    this._fightSoulEffectPlayer = EffectPlayerPool.instance.getEffectPlayer(_loc_2.effect1, null, this._rect3d.renderList, false);
                    this._fightSoulEffectPlayer.play(PlayMode.ANIMATION_LOOP_MODE);
                    if (this._fightSoulEffectPlayer.temple is TempleRole)
                    {
                        TempleRole(this._fightSoulEffectPlayer.temple).setRoleParams(this._fightSoulModelPlayer, null, null);
                    }
                    else
                    {
                        this._fightSoulModelPlayer.addChild(this._fightSoulEffectPlayer);
                    }
                    this._fightSoulEffectPlayer.resetTimerContorler(this._fightSoulModelPlayer.timerContorler);
                    this._isFightSoulDisposed = false;
                }
            }
            return;
        }// end function

        private function onTimerFrameHandler(param1:FrameTimer) : void
        {
            this.modelTurn();
            return;
        }// end function

        private function removeEffect() : void
        {
            if (this._weaponEffectPlayer)
            {
                this._weaponEffectPlayer.dispose();
                this._weaponEffectPlayer = null;
            }
            return;
        }// end function

        private function stopTurn() : void
        {
            if (this._frameTimer)
            {
                this._frameTimer.stop();
            }
            this._turnNum = 0;
            return;
        }// end function

        private function modelTurn() : void
        {
            var _loc_1:* = this._turnNum + 0.1;
            this._turnNum = this._turnNum + 0.1;
            this._weaponPlayer.y = this._weaponPlayer.y + Math.cos(_loc_1) * 1;
            this._weaponPlayer.rotationY = this._weaponPlayer.rotationY + 5;
            return;
        }// end function

        private function removeRoleModel() : void
        {
            this._rect3d.disposeObj3d(this._roleModelPlayer);
            this._roleModelPlayer = null;
            this._isRoleModelDisposed = true;
            return;
        }// end function

        private function removeWeaponModel() : void
        {
            this.stopTurn();
            this._rect3d.disposeObj3d(this._weaponPlayer);
            this._weaponPlayer = null;
            this._isWeaponModelDisposed = true;
            return;
        }// end function

        private function removeFightSoulPlayer() : void
        {
            this._isFightSoulDisposed = true;
            this._rect3d.disposeObj3d(this._fightSoulEffectPlayer);
            this._fightSoulEffectPlayer = null;
            this._rect3d.disposeObj3d(this._fightSoulModelPlayer);
            this._fightSoulModelPlayer = null;
            return;
        }// end function

        private function removeAllModel() : void
        {
            if (!this._isRoleModelDisposed)
            {
                this.removeRoleModel();
            }
            if (!this._isWeaponModelDisposed)
            {
                this.removeWeaponModel();
            }
            if (!this._isFightSoulDisposed)
            {
                this.removeFightSoulPlayer();
            }
            return;
        }// end function

        protected function remove3D() : void
        {
            if (this._rect3d)
            {
                if (this._img2d)
                {
                    this._rect3d.removeImg(this._img2d);
                    this._img2d = null;
                }
                if (this._roleModelPlayer)
                {
                    this._rect3d.disposeObj3d(this._roleModelPlayer);
                    this._roleModelPlayer = null;
                }
                if (this._weaponPlayer)
                {
                    this._rect3d.disposeObj3d(this._weaponPlayer);
                    this._weaponPlayer = null;
                }
                if (this._weaponEffectPlayer)
                {
                    this._weaponEffectPlayer.dispose();
                    this._weaponEffectPlayer = null;
                }
                if (this._fightSoulEffectPlayer)
                {
                    this._fightSoulEffectPlayer.dispose();
                    this._fightSoulEffectPlayer = null;
                }
                if (this._fightSoulModelPlayer)
                {
                    this._fightSoulModelPlayer.dispose();
                    this._fightSoulModelPlayer = null;
                }
                Rect3DManager.instance.disposeRect3d(this._rect3d);
                this._rect3d = null;
            }
            return;
        }// end function

        protected function onFashionInfoUpdate(param1:Object) : void
        {
            var _loc_3:ItemData = null;
            var _loc_4:int = 0;
            var _loc_2:* = param1 as SAttributeUpdate;
            this._data = Cache.instance.fashion.getFashionInfo(this._data.type);
            if (_loc_2)
            {
                switch(_loc_2.attribute.value())
                {
                    case EEntityAttribute._EAtrributeFashionReturn:
                    {
                        if (Cache.instance.fashion.isTakeReturnProp(this._data.type))
                        {
                            this.flyIcon();
                        }
                        break;
                    }
                    case EEntityAttribute._EAttributeFashionCode:
                    {
                        if (this._data.advanceInfo.code >= 3)
                        {
                            _loc_3 = this._propItem.itemData;
                            _loc_4 = this._propItem.amount;
                            hide();
                            PlayerSystemAdvanceReturnWin.instance.show();
                            PlayerSystemAdvanceReturnWin.instance.addRewardItem(_loc_3, _loc_4);
                        }
                        break;
                    }
                    default:
                    {
                        break;
                    }
                }
            }
            return;
        }// end function

        private function onTakeHandler(event:MouseEvent) : void
        {
            if (this._data != null)
            {
                GameProxy.fashion.getAdvanceReward(this._data.type, 3);
            }
            return;
        }// end function

        private function flyIcon() : void
        {
            var _loc_1:* = this._propItem.localToGlobal(new Point(0, 0));
            FlyToNavbarTool.flyToBackPack(this._propItem.bitmapdata, _loc_1);
            this.hide();
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl();
            this._titleTxt.dispose();
            this._levelTxt.dispose();
            this._levelName.dispose();
            this._combat.dispose();
            this._bg.dispose();
            this._rotate3d.dispose();
            this._returnText.dispose();
            this._propItem.dispose();
            if (this._frameTimer)
            {
                this._frameTimer.dispose();
            }
            this._titleTxt = null;
            this._levelTxt = null;
            this._levelName = null;
            this._combat = null;
            this._bg = null;
            this._rotate3d = null;
            this._returnText = null;
            this._frameTimer = null;
            this._propItem = null;
            this._data = null;
            this._isRoleModelDisposed = true;
            this._isWeaponModelDisposed = true;
            this._isFightSoulDisposed = true;
            this._turnNum = 0;
            this.remove3D();
            this.removeListeners();
            return;
        }// end function

        override protected function onWindowDownHandler(event:MouseEvent) : void
        {
            return;
        }// end function

        public static function get instance() : FashionActivityWin
        {
            if (_instance == null)
            {
                _instance = new FashionActivityWin;
            }
            return _instance;
        }// end function

        public static function hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

        public static function get isViewShow() : Boolean
        {
            return _instance && !_instance.isHide;
        }// end function

    }
}
